﻿ 
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="公司员工">  
    <meta name="description" content="公司员工">  
    <title>公司员工管理</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head>  
<body>  
    
      
   <div class="easyui-layout" style="width:700px;height:350px;">
   	   <div data-options="region:'west',split:true" title="West" style="width:100px;"></div>
   	       <table id="dg" title="SystemDicCategory管理" style="width:1100px;height:250px"  
                url="/sysadmin/systemDicCategory/list.do"  
                toolbar="#toolbar-dic-category" pagination="true"  
                rownumbers="true" pageSize="20" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  
           
           </table> 
   	   
       <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">
       	    <table id="dg" title="系统字典管理" style="width:1200px;height:550px"  
                url="/sysadmin/systemDic/list.do"  
                toolbar="#toolbar-dic" pagination="true"  
                rownumbers="true" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  

            </table>  
       </div>    	
   </div>  

    <div id="toolbar-dic-category">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="add()">新增</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="edit()">修改</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deletes()">删除</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="find()">查询</a>
    </div> 
    <div id="toolbar-dic">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="add()">新增</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="edit()">修改</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deletes()">删除</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="find()">查询</a>
    </div>     
   <script type="text/javascript"> 
   	   $('#dg-dic-category').datagrid({
        	   columns:[[
        	   	
        	   	   {field:'category',title:'分类编码', width:100}
        	   	   ,{field:'name',title:'名称', width:100}
        	   	   ,{field:'level',title:'层级', width:100}        	   	   
        	   	
        	   	
        	   ]]
        	   ,onDblClickRow: function(rowIndex, rowData){
        	    	$('#dlg-dic-category').dialog('open').dialog('setTitle','修改SystemDicCategory');                  
                $('#fm-dic-category').form('load','/sysadmin/systemDicCategory/get.do?id='+rowData.id);  
                url = '/sysadmin/systemDicCategory/update.do';        	    	
        	    }
        }); 
       $('#dg-dic').datagrid({
        	   columns:[[
        	   	
        	   	   {field:'id',title:'编号', width:100}
        	   	   ,{field:'codeNameCn',title:'中文描述', width:100}
        	   	   ,{field:'codeNameEn',title:'英文描述', width:100}
        	   	   ,{field:'category',title:'分类', width:100}
        	   	   ,{field:'parentName',title:'上级id,0表示无上级', width:100}        	   	  
        	   	   ,{field:'seqNo',title:'排序', width:100}
        	   	   ,{field:'status',title:'状态', width:100}
        	   	   
        	   	
        	   	
        	   ]]
        	   ,onDblClickRow: function(rowIndex, rowData){
        	    	$('#dlg-dic').dialog('open').dialog('setTitle','修改系统字典');                  
                $('#fm-dic').form('load','/sysadmin/systemDic/get.do?id='+rowData.id);  
                url = '/sysadmin/systemDic/update.do';        	    	
        	    }
        });   
   </script>	   
     
     
</body>  
</html>